package com.snaildesign.countdown.model;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="COUNT_DOWN_EXP"
 *     
*/
public class CountDownExp implements Serializable {

    /** identifier field */
    private String countDownId;

    /** identifier field */
    private String itemSpecId;

    /** identifier field */
    private BigDecimal seq;

    /** nullable persistent field */
    private String value;

    /** nullable persistent field */
    private String remarks;

    /** nullable persistent field */
    private com.snaildesign.countdown.model.ItemSpec itemSpec;

    /** nullable persistent field */
    private com.snaildesign.countdown.model.CountDown countDown;

    /** full constructor */
    public CountDownExp(String countDownId, String itemSpecId, BigDecimal seq, String value, String remarks, com.snaildesign.countdown.model.ItemSpec itemSpec, com.snaildesign.countdown.model.CountDown countDown) {
        this.countDownId = countDownId;
        this.itemSpecId = itemSpecId;
        this.seq = seq;
        this.value = value;
        this.remarks = remarks;
        this.itemSpec = itemSpec;
        this.countDown = countDown;
    }

    /** default constructor */
    public CountDownExp() {
    }

    /** minimal constructor */
    public CountDownExp(String countDownId, String itemSpecId, BigDecimal seq) {
        this.countDownId = countDownId;
        this.itemSpecId = itemSpecId;
        this.seq = seq;
    }

    /** 
     *                @hibernate.property
     *                 column="COUNT_DOWN_ID"
     *                 length="15"
     *             
     */
    public String getCountDownId() {
        return this.countDownId;
    }

    public void setCountDownId(String countDownId) {
        this.countDownId = countDownId;
    }

    /** 
     *                @hibernate.property
     *                 column="ITEM_SPEC_ID"
     *                 length="30"
     *             
     */
    public String getItemSpecId() {
        return this.itemSpecId;
    }

    public void setItemSpecId(String itemSpecId) {
        this.itemSpecId = itemSpecId;
    }

    /** 
     *                @hibernate.property
     *                 column="SEQ"
     *                 length="22"
     *             
     */
    public BigDecimal getSeq() {
        return this.seq;
    }

    public void setSeq(BigDecimal seq) {
        this.seq = seq;
    }

    /** 
     *            @hibernate.property
     *             column="VALUE"
     *             length="200"
     *         
     */
    public String getValue() {
        return this.value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    /** 
     *            @hibernate.property
     *             column="REMARKS"
     *             length="100"
     *         
     */
    public String getRemarks() {
        return this.remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    /** 
     *            @hibernate.many-to-one
     *             update="false"
     *             insert="false"
     *         
     *            @hibernate.column
     *             name="ITEM_SPEC_ID"
     *         
     */
    public com.snaildesign.countdown.model.ItemSpec getItemSpec() {
        return this.itemSpec;
    }

    public void setItemSpec(com.snaildesign.countdown.model.ItemSpec itemSpec) {
        this.itemSpec = itemSpec;
    }

    /** 
     *            @hibernate.many-to-one
     *             update="false"
     *             insert="false"
     *         
     *            @hibernate.column
     *             name="COUNT_DOWN_ID"
     *         
     */
    public com.snaildesign.countdown.model.CountDown getCountDown() {
        return this.countDown;
    }

    public void setCountDown(com.snaildesign.countdown.model.CountDown countDown) {
        this.countDown = countDown;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("countDownId", getCountDownId())
            .append("itemSpecId", getItemSpecId())
            .append("seq", getSeq())
            .toString();
    }

}
